#include <unistd.h>
#include <stdio.h>

#include "../include/Host.h"

char * Host::get_host_name() {

    if (host_name == NULL) {
        host_name = (char *)malloc(MAX_HOSTNAME);
        gethostname(host_name, MAX_HOSTNAME);
    }

    return (host_name);
}
